﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string s = Request.HttpMethod;
            if (s =="GET")
            {
            string username = Request.QueryString["username"];
            string password = Request.QueryString["password "];
            Label1.Text = $"欢迎你，{username }，你的密码是：{password }";
            }
            else if(s =="POST")
            {
            string username1= Request.Form["TextBox1"];
            string password1= Request.Form["TextBox2"];
            Label1.Text = $"欢迎你，{username1}，你的密码是：{password1}";
            }
        }
    }
}